package AnnularDoubleLists;

public class Text {
    public static void main(String[] args) {
        MyAnnularDoubleList myAnnularDoubleList = new MyAnnularDoubleList();

        myAnnularDoubleList.addLast(1);
        myAnnularDoubleList.addLast(2);
        myAnnularDoubleList.addLast(3);
        myAnnularDoubleList.addLast(4);
        myAnnularDoubleList.addLast(5);
        for (Integer integer : myAnnularDoubleList) {
            System.out.println(integer);
        }
        System.out.println("------------------------------");
        myAnnularDoubleList.removeValue(3);
        for (Integer integer : myAnnularDoubleList) {
            System.out.println(integer);
        }


/*        myAnnularDoubleList.removeLast();
        myAnnularDoubleList.removeLast();
        myAnnularDoubleList.removeLast();
        myAnnularDoubleList.removeLast();
        myAnnularDoubleList.removeLast();
        myAnnularDoubleList.removeLast();
        myAnnularDoubleList.removeLast();
        for (Integer integer : myAnnularDoubleList) {
            System.out.println(integer);
        }
        System.out.println("-------------------------------");
        myAnnularDoubleList.addFirst(1);
        myAnnularDoubleList.addFirst(1);
        myAnnularDoubleList.addFirst(1);
        myAnnularDoubleList.addFirst(1);
        for (Integer integer : myAnnularDoubleList) {
            System.out.println(integer);
        }*/
/*        myAnnularDoubleList.removeFirst();
        myAnnularDoubleList.removeFirst();
        myAnnularDoubleList.removeFirst();
        myAnnularDoubleList.removeFirst();
        myAnnularDoubleList.removeFirst();
        myAnnularDoubleList.removeFirst();
        myAnnularDoubleList.removeFirst();
        myAnnularDoubleList.removeFirst();
        for (Integer integer : myAnnularDoubleList) {
            System.out.println(integer);
        }
        myAnnularDoubleList.addFirst(1);
        myAnnularDoubleList.addFirst(2);
        myAnnularDoubleList.addFirst(3);
        for (Integer integer : myAnnularDoubleList) {
            System.out.println(integer);
        }*/
/*        myAnnularDoubleList.addFirst(1);
        myAnnularDoubleList.addFirst(2);
        myAnnularDoubleList.addFirst(3);
        myAnnularDoubleList.addFirst(4);
        myAnnularDoubleList.addFirst(5);*/
    }
}
